﻿@model WeekendPool.Models.Sunday

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Sunday</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Details)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Details)
            @Html.ValidationMessageFor(model => model.Details)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Adult)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Adult)
            @Html.ValidationMessageFor(model => model.Adult)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Child)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Child)
            @Html.ValidationMessageFor(model => model.Child)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
